import Vue from "vue";
import Router from "vue-router";
import login from "@/components/login";
import home from "@/components/home";
import homepage from "@/components/homePage";
import packaging from "@/components/kanbanShow/packaging";
import sdca from "@/components/kanbanShow/sdca";
import answer from "@/components/masterData/answer";
import kpiTree from "@/components/masterData/kpiTree";
import  Management from "@/components/kanbanShow/Management";
import Dream from "@/components/kanbanShow/Dream";


Vue.use(Router);

export default new Router({
  routes: [
    {
      path: "/home",
      name: "",
      component: home,
      children: [
        {
          path: "/",
          name: "mians",
          component: homepage
        },
        {
          path: "/answer",
          name: "answer",
          component: answer
        },
        {
          path: "/kpiTree",
          name: "kpiTree",
          component: kpiTree
        }
      ]
    },
    {
      path: "/",
      name: "登录",
      component: login
    },
    {
      path: "/packaging",
      name: "包装",
      component: packaging
    },
    {
      path: "/sdca",
      name: "sdca",
      component: sdca
    },
    {
      path: "/Dream",
      name: "Dream",
      component: Dream
    },
    {
      path: "/Management",
      name: "Management",
      component: Management
    }
  ]
});
